<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		
//		var str = "a  b     cd";
//		var re = /\s+/;
//		console.log(str.split(re))		
		
		var str = "abcdfeghjhgk";
		var index =	str.lastIndexOf("g");
		var re = /g/g;
		console.log(index)
//		console.log(str.search(re))
//		console.log(str.match("g"))
//		console.log(str.match(re))
//		console.log(str.replace("gk",function(){
//			return "hello"
//		}))
		
		console.log(str.charCodeAt(3))
	</script>
</html>
